#include "rectMesh.hpp"
#include <catch2/catch_test_macros.hpp>
#include <iostream>

using namespace hms;

TEST_CASE("RectEdges"){
	ArrayXs xCoords (4), yCoords (3), xCopy, yCopy;

	xCoords << -1, 0, 2, 6;
	yCoords << -2, 0, 1;
	xCopy = xCoords;
	yCopy = yCoords;

	Index ng {1};

	RectMesh mesh { std::move(xCopy), std::move(yCopy), ng };
	const RectEdges& edges { mesh.edges() };

	// std::cout
	// 	<<   "normals:\n" << edges.normals()
	// 	<< "\nlengths: " << edges.lengths().transpose()
	// 	<< "\n";
	// std::cout
	// 	<< "ColsAtCompileTime = "
	// 	<< decltype( edges.lengths() )::ColsAtCompileTime << "\n";
}